package cn.getech.data.development.config.properties;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Data
@Component
@Configuration
public class DataDevelopmentConfig {

    @Value("${data-development.swagger-open:true}")
    private boolean swaggerOpen;

    @Value("${data-development.ranger.user-preffix:}")
    private String userPreffix;

    @Value("${data-development.ranger.user-select-preffix:}")
    private String userSelectPreffix;

    @Value("${data-development.ranger.user-policy-preffix:}")
    private String userPolicyPreffix;

    @Value("${data-development.ranger.table-policy-preffix:}")
    private String tablePolicyPreffix;

    @Value("${data-development.ranger.mask-policy-preffix:}")
    private String maskPolicyPreffix;

    @Value("${data-development.ranger.user-password:}")
    private String userPassword;

    @Value("${data-development.ranger.hive-service:}")
    private String hiveService;

    @Value("${data-development.ranger.hiveserverurl:}")
    private String hiveserverurl;

    @Value("${data-development.ranger.explore-group:}")
    private String exploreGroup;

    @Value("${data-development.mail-from-host:}")
    private String mailFromHost;

    @Value("${data-development.mail-from-addr:}")
    private String mailFromAddr;

    @Value("${data-development.mail-from-password:}")
    private String mailFromPassword;

    @Value("${data-development.ranger.role-preffix:}")
    private String rolePreffix;

    @Value("${data-development.ranger.role-policy-preffix:}")
    private String rolePolicyPreffix;

    @Value("${data-development.table-statistics-open:}")
    private String tableStatisticsOpen;

    @Value("${data-development.data-manager-url:}")
    private String dataManagerUrl;

    @Value("${data-development.fLink-host:}")
    private String fLinkHost;

    @Value("${data-development.fLink-port:}")
    private Integer fLinkPort;

    @Value("${data-development.fLink-user-name:}")
    private String fLinkUserName;

    @Value("${data-development.fLink-pwd:}")
    private String fLinkPwd;

    @Value("${data-development.fLink-impl:}")
    private String fLinkImpl;

    @Value("${data-development.res-path:}")
    private String resPath;

    @Value("${data-development.kudu-addresses:}")
    private String kuduAddresses;
    @Value("${data-development.kudu-jdbc-url:}")
    private String  kuduJdbcUrl;

    @Value("${data-development.rand-data:}")
    private String randData;

    @Value("${data-development.curlconnectTime:900}")
    private Integer curlconnectTime;
    @Value("${data-development.curlMaxTime:900}")
    private Integer curlMaxTime;


    @Value("${data-development.spark-host:10.74.20.70}")
    private String sparkHost;

    @Value("${data-development.spark-port:22222}")
    private Integer sparkPort;

    @Value("${data-development.spark-user-name:hdfs}")
    private String sparkUserName;

    @Value("${data-development.spark-pwd:hdfs@123}")
    private String sparkPwd;
}
